import { network } from '@/utils';
import {
  PushConfigParams,
  SaveConfigParams,
  TestConfigParams,
} from './data';

import { partner } from '../../../../../config/Apis';

export async function queryPushConfig(params: PushConfigParams) {
  params._content_type = 'json';
  return network.get(partner.fcs_push_conf_edit_page, { params });
}

export async function savePushConfig(params: SaveConfigParams) {
  return network.post(partner.fcs_push_conf_update, { params });
}

export async function testPushConfig(params: TestConfigParams) {
  return network.post(partner.fcs_push_conf_test, { params });
}

export default {};
